<template>
    <div>
        <van-cell-group inset v-for="item in allItData" :title="item.ryD_UserName" v-bind:key="item.ryD_UserId">
            <van-cell title="正在处理单数" :value="item.num"  />
            <van-cell title="已处理单数" :value="item.sum-item.num"  />
            <van-cell title="总单数" :value="item.sum"  />
        </van-cell-group>
    </div>
</template>

<script setup>
import axios from '@/utils/axios';
import { inject, ref } from 'vue';


let nav = inject('nav');
nav.showLeft = true;
nav.textLeft = '返回';
nav.title = 'ITSM 人员查看';
nav.showRight = false;

let RYD_UserId = inject('RYD_UserId');
let RYD_Company = '';

let allItData = ref();
axios({
    method: 'get',
    url: '/api/GetCompany?RYD_UserId=' + RYD_UserId
}).then(res => {
    RYD_Company = res;
    axios({
        method: 'get',
        url: '/api/ALLIT?RYD_Company=' + RYD_Company,
    }).then(resAllItData => {
        allItData.value = resAllItData;
    })
})


</script>

<style scoped>
</style>